package com.larry.design.structural.flyweight;

import java.util.HashMap;
import java.util.Map;

/**
 * @author larry
 * @Title: design-frame
 * @Package com.larry.design.structural.flyweight
 * @Description: 享元模式
 * @date 9/2/2110:41 AM
 */
public class Wait {

    private static Map<String,AbstractFlyweight> pool = new HashMap<String, AbstractFlyweight>();

    static {
        Beautiful aa = new Beautiful("111", "aa", 12,true);
        Beautiful bb = new Beautiful("222", "bb", 12,true);

        pool.put(aa.getId(),aa);
        pool.put(bb.getId(),bb);
    }

}
